<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="centre/manage/include :: header"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="noCheckDetailForm">
                        <input type="hidden" th:value="${deliveryman.id}" id="id" name="id">
                        <table class="table table-bordered table-condensed">
                            <tbody>
                            <tr>
                                <th class="required" style="text-align: right;">用户id</th>
                                <td th:text="${deliveryman.userId}">
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">昵称</th>
                                <td th:text="${deliveryman.userName}">
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">真实姓名</th>
                                <td>
                                    <div style="width: 98%;float: left"><input id="name" name="name"
                                                                               class="form-control" type="text"
                                                                               th:value="${deliveryman.name}"/></div>
                                    <div style="width: 1%;float: left;margin-top: 8px;"><font color="red"
                                                                                              style="margin-left: 8px">*</font>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">性别</th>
                                <td>
                                    <label class="radio-inline"><input th:field="*{deliveryman.sex}" type="radio"
                                                                       name="sex" value="1"/>男</label>
                                    <label class="radio-inline"><input th:field="*{deliveryman.sex}" type="radio"
                                                                       name="sex" value="2"/>女</label>
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">手机号码</th>
                                <td>
                                    <div style="width: 98%;float: left"><input id="mobile" name="mobile"
                                                                               class="form-control" type="text"
                                                                               th:value="${deliveryman.mobile}"/></div>
                                    <div style="width: 1%;float: left;margin-top: 8px;"><font color="red"
                                                                                              style="margin-left: 8px">*</font>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">申请时间</th>
                                <td th:text="${deliveryman.applicationTime} == null ? null : ${#dates.format(deliveryman.applicationTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">审核状态</th>
                                <td th:text="${deliveryman.auditStatus} == 0 ? '待审核' : (${deliveryman.auditStatus} == 1 ? '审核通过' : '审核不通过')"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">审核时间</th>
                                <td th:text="${deliveryman.auditTime} == null ? null : ${#dates.format(deliveryman.applicationTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">审核不通过原因</th>
                                <td th:text="${deliveryman.auditDetail}"></td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <button type="button" class="btn btn-primary" onclick="save()"><i
                                        class="fa fa-check"></i>修改
                                </button>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:include="centre/manage/include::footer"></div>
<script type="text/javascript" src="/js/appjs/commander/manage/deliverymanDetail.js"></script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>
</body>
</html>
